package com.ld.control.business.sample.controller;


import com.ld.control.business.equipment.vo.resp.EquipmentDataFieldConfigRespVo;
import com.ld.control.business.sample.service.SampleDataShowConfigService;
import com.ld.control.business.sample.service.SampleService;
import com.ld.control.business.sample.vo.resp.SampleDataShowConfigRespVo;
import com.ld.control.business.sample.vo.resp.SampleExtRespVo;
import com.ld.control.common.ResultResponse;
import com.ld.control.common.vo.GenerateListVo;
import com.ld.control.common.vo.GeneratePageListVo;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 设备字段配置 前端控制器
 * </p>
 *
 * @author wangfeng
 * @since 2025-10-14
 */
@Tag(name = "样品数据展示相关接口")
@RestController
public class SampleDataShowConfigController {

    @Autowired
    private SampleDataShowConfigService sampleDataShowConfigService;

    @Autowired
    private SampleService sampleService;


    @GetMapping("/api/centralControl/SampleDataShowConfig/getSampleDataShowTitleList")
    @Operation(summary = "获取样品展示的标题信息")
    public ResultResponse<GenerateListVo<SampleDataShowConfigRespVo>> getEquipmentSampleFieldShowList(
    ) {
        GenerateListVo<SampleDataShowConfigRespVo> resultList= sampleDataShowConfigService.getSampleDataShowTitleList();
        return ResultResponse.success(resultList);
    }

}

